package com.efounder.anim;

import android.view.animation.Interpolator;

/**
 * 先减速后加速
 * @author will
 */
public class HesitateInterpolator implements Interpolator {

    public HesitateInterpolator() {}

    @Override
    public float getInterpolation(float t) {
        float x=2.0f*t-1.0f;
        return 0.5f*(x*x*x + 2.0f);
    }
}